package cn.net.yugu.doraemon.netty.protocol.msg05;

import cn.net.yugu.doraemon.netty.protocol.MsgCode;
import io.netty.buffer.ByteBuf;

/**
 * 电池业务服务器心跳
 */
public class Msg051000002 extends Msg051 {
    public String id;

    @Override
    public int getMsgCode() {
        return MsgCode.MSG_051000002.getCode();
    }

    @Override
    public void readData(ByteBuf buffer) {
        id = readString(buffer);
    }

    @Override
    public void writeData(ByteBuf buffer) {
        writeString(buffer, id);
    }
}
